home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 847 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.7 KB

  1. Path: newsserver.trl.OZ.AU!usenet
  2. From: t.hand@trl.oz.au (Trevor Hand)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Serail Port Programming
  5. Date: 7 Jan 1996 22:07:27 GMT
  6. Organization: Telstra Research Laboratories
  7. Message-ID: <4cpg6v$ao@newsserver.trl.OZ.AU>
  8. References: <4cgjij$lmk@newsbf02.news.aol.com>
  9. NNTP-Posting-Host: tmp_ip_159.trl.oz.au
  10. To: prestridge@aol.com
  11. X-Newsreader: News Xpress Version 1.0 Beta #3
  12.  
  13. In article <4cgjij$lmk@newsbf02.news.aol.com>,
  14.    prestridge@aol.com (Prestridge) wrote:
  15. >I am needing a good way of reading from an RS-232 serail port. I am using
  16. >a Turbo c++ 1.0 compiler and have already tried bioscom to no avail. Any
  17. >help will be appreciated. My address is prestridge@aol.com.
  18. >
  19. I am currently writing a class to test/manipulate the serial port.  At the 
  20. momment though I am having some trouble getting a dialog box working - still 
  21. haven't worked out what to use when "this" doesn't work! - once I solve this 
  22. (no pun intended) it should be pretty well fixed.  I found a lot of 
  23. information in a book titled "Using Turbo C++ 4.5" by Que, it has a chapter 
  24. titled "Device I/O" and has a number of examples showing, quite clearly too, 
  25. how to talk to the serial port.  Most of the functions used are in the Windows 
  26. API, the book "Visual Basic Programmer's Guide to the Windows API" by Appleman 
  27. is considered to be one of the best on the API subject, pretty easy to convert 
  28. from VB to C.  My code does not read from the port, just sets up the settings 
  29. and writes strings out.  If you would like some of my code that may be 
  30. relevant to help you, let me know and I will send you some, probably 5 or 6 
  31. pages though.  Reading from the port is pretty easy.
  32.  
  33. Trevor Hand
  34. t.hand@trl.oz.au
  35.  
  36.  
  37.